import { ResponseData } from "@/api/public"
// 分类
export interface Category{
    id: number,
    name: string,
    categoryId? : number,
    category2Id? : number
}

// 属性值
export interface AttrValue{
    id?: number,
    attrId?: number,
    valueName: string,
    flag?: boolean
}

// 属性值列表
export type AttrValueList = AttrValue[]

// 属性对象
export interface Attr{
    id?: number,
    attrName: string,
    categoryId: number | string,
    categoryLevel: number,
    attrValueList: AttrValueList
}

// 响应数据ts类型
// 属性分类
export interface CategoryResData extends ResponseData{
    data: Category[]
}

// 属性值
export interface AttrResData extends ResponseData{
    data: Attr[]
}